package cn.imvc.app.models;

import java.util.Date;

import org.springframework.data.domain.Page;

import cn.imvc.app.entities.Member;
import cn.imvc.app.entities.Recharge;
import cn.imvc.data.domain.ViewRequest;

public interface RechargeModel {
	Page<Recharge> find(ViewRequest viewRequest);

	Recharge get(int id);

	Recharge save(Recharge entity);

	Recharge update(Recharge entity);

	void delete(int id);

	void deleteBatch(int[] ids);
	
	Recharge saveRechargeOrder(Integer money,Member member);
	
	Recharge findByCode(String code);
	
	void finishPay(String code,String payCode,Date payTime);

}
